package com.xinqi.modules.course.course.enums.group;

import com.fasterxml.jackson.annotation.JsonValue;
import com.xinqi.common.base.annotations.Describe;
import com.xinqi.common.base.enums.BaseEnum;
import lombok.Getter;

@Describe("是否是组长")
public enum GroupLeadTypeEnum implements BaseEnum {

    /**
     * 不是组长
     */
    NO("NO", "否"),


    /**
     * 是组长
     */
    YES("YES", "是");

    @Getter(onMethod_ = {@JsonValue})
    private final String code;

    @Getter
    private final String describe;

    GroupLeadTypeEnum(String code, String describe) {
        this.code = code;
        this.describe = describe;
    }

}
